#include "target_display.h"
#include <qapplication.h>
#include <qpainter.h>
#include <qpainterpath.h>

#include <QtGui/QFontDatabase>


TargetDisplay::TargetDisplay(QWidget *parent) :
  QWidget(parent),_x(0),_y(0)
  {

  QFontDatabase::addApplicationFont(":/fonts/DejaVuSans.ttf");
  setWindowFlags(Qt::CustomizeWindowHint|Qt::FramelessWindowHint);
  hide();
}
void TargetDisplay::paintEvent(QPaintEvent *event)
{
    QPainter painter(this);
    painter.setPen(QPen(Qt::blue,4));//设置画笔形式
    painter.drawEllipse(0,0,10,10);//画圆

}
